﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10.装修模式.Base
{
    /// <summary>
    /// 抽象基类
    /// </summary>
    public abstract class Person
    {
        public virtual string Name { get; set; }

        public virtual void Eat()
        {
            Console.WriteLine($"{Name}小家伙能吃饭");
        }

        public virtual void Sleep()
        {
            Console.WriteLine($"{Name}小家伙能睡觉");
        }

        public abstract void Invoke();
    }
}
